home *** CD-ROM | disk | FTP | other *** search
Wrap
function output(arg) { status_op.text = arg; } function loadClip(_file, _mc) { var _loc1_ = new MovieClipLoader(); _loc1_.onLoadStart = function(targetMC) { targetMC._alpha = 0; }; _loc1_.onLoadProgress = function(targetMC, loadedBytes, totalBytes) { }; _loc1_.onLoadComplete = function(targetMC) { }; _loc1_.onLoadInit = function(targetMC) { var _loc3_ = System.capabilities.screenResolutionX; var _loc2_ = System.capabilities.screenResolutionY; mdm.Forms.SplashForm.x = Math.round(_loc3_ / 2 - (targetMC._width + 40) / 2); mdm.Forms.SplashForm.y = Math.round(_loc2_ / 2 - (targetMC._height + 40) / 2); mdm.Forms.SplashForm.width = targetMC._width + 40; mdm.Forms.SplashForm.height = targetMC._height + 40; targetMC._x = 20; targetMC._y = 20; var _loc4_ = new flash.filters.DropShadowFilter(2,65,0,0.3,10,10,2,5); targetMC.filters = [_loc4_]; targetMC.init(); targetMC.tween(["_alpha"],100,1,"easeOutQuart"); }; _loc1_.onLoadError = function(targetMC, errorCode) { }; _loc1_.loadClip(_file,_mc); } function renderSplash() { var _loc2_ = settings.firstChild.childNodes[0]; while(_loc2_ != null) { _root[_loc2_.nodeName] = _loc2_.firstChild.nodeValue; _loc2_ = _loc2_.nextSibling; } if(splash_show_status == "true") { status_op._visible = true; } test_op.text = "renderSpash: " + appdir + " / " + folder + " / " + splash_image; _root.createEmptyMovieClip("splash_mc",1); loadClip(appdir + folder + splash_image,splash_mc); } function loadSettings() { status_op.text = "Loading.."; settings = new XML(); settings.ignoreWhite = true; settings.onLoad = renderSplash; settings.load(appdir + folder + "config/settings.xml",false); } Stage.align = "LT"; Stage.scaleMode = "noScale"; if(_global.$tweenManager == undefined) { _global.$tweenManager = new zigo.tweenManager(); } else { _global.$tweenManager.cleanUp(); _global.$tweenManager.init(); } com.robertpenner.easing.Back; com.robertpenner.easing.Bounce; com.robertpenner.easing.Circ; com.robertpenner.easing.Cubic; com.robertpenner.easing.Elastic; com.robertpenner.easing.Expo; com.robertpenner.easing.Linear; com.robertpenner.easing.Quad; com.robertpenner.easing.Quart; com.robertpenner.easing.Quint; com.robertpenner.easing.Sine; var Mp = MovieClip.prototype; Mp.addListener = function() { if(!this._listeners) { AsBroadcaster.initialize(this); } this.addListener.apply(this,arguments); }; ASSetPropFlags(Mp,"addListener",1,0); Mp.tween = function(props, pEnd, seconds, animType, delay, callback, extra1, extra2) { if(_global.$tweenManager.isTweenLocked(this)) { return undefined; } if(arguments.length < 2) { return undefined; } if(typeof props == "string") { if(props.indexOf(",") > -1) { props = props.split(" ").join("").split(","); } else { props = [props]; } } if(!(pEnd instanceof Array)) { pEnd = [pEnd]; while(pEnd.length < props.length) { pEnd.push(pEnd[0]); } } if(seconds == undefined) { seconds = 2; } else if(seconds < 0.01) { seconds = 0; } if(delay < 0.01 || delay == undefined) { delay = 0; } switch(typeof animType) { case "string": animType = animType.toLowerCase(); if(animType == "linear") { var eqf = com.robertpenner.easing.Linear.easeNone; } else if(animType.indexOf("easeoutin") == 0) { var t = animType.substr(9); t = t.charAt(0).toUpperCase() + t.substr(1); var eqf = com.robertpenner.easing[t].easeOutIn; } else if(animType.indexOf("easeinout") == 0) { var t = animType.substr(9); t = t.charAt(0).toUpperCase() + t.substr(1); var eqf = com.robertpenner.easing[t].easeInOut; } else if(animType.indexOf("easein") == 0) { var t = animType.substr(6); t = t.charAt(0).toUpperCase() + t.substr(1); var eqf = com.robertpenner.easing[t].easeIn; } else if(animType.indexOf("easeout") == 0) { var t = animType.substr(7); t = t.charAt(0).toUpperCase() + t.substr(1); var eqf = com.robertpenner.easing[t].easeOut; } if(eqf == undefined) { var eqf = com.robertpenner.easing.Expo.easeOut; } break; case "function": var eqf = animType; break; case "object": if(animType.ease != undefined && animType.pts != undefined) { var eqf = animType.ease; extra1 = animType.pts; } else { var eqf = com.robertpenner.easing.Expo.easeOut; } break; default: var eqf = com.robertpenner.easing.Expo.easeOut; } switch(typeof callback) { case "function": callback = {func:callback,scope:this._parent}; break; case "string": var ilp; var funcp; var scope; var args; var a; ilp = callback.indexOf("("); funcp = callback.slice(0,ilp); scope = eval(funcp.slice(0,funcp.lastIndexOf("."))); func = eval(funcp); args = callback.slice(ilp + 1,callback.lastIndexOf(")")).split(","); var i = 0; while(i < args.length) { a = eval(args[i]); if(a != undefined) { args[i] = a; } i++; } callback = {func:func,scope:scope,args:args}; } if(_global.$tweenManager.autoStop) { _global.$tweenManager.removeTween(this); } if(delay > 0) { _global.$tweenManager.addTweenWithDelay(delay,this,props,pEnd,seconds,eqf,callback,extra1,extra2); } else { _global.$tweenManager.addTween(this,props,pEnd,seconds,eqf,callback,extra1,extra2); } }; Mp.stopTween = function(props) { if(typeof props == "string") { if(props.indexOf(",") > -1) { props = props.split(" ").join("").split(","); } else { props = [props]; } } _global.$tweenManager.removeTween(this,props); }; Mp.isTweening = function(prop) { return _global.$tweenManager.isTweening(this,prop); }; Mp.getTweens = function() { return _global.$tweenManager.getTweens(this); }; Mp.lockTween = function() { _global.$tweenManager.lockTween(this,true); }; Mp.unlockTween = function() { _global.$tweenManager.lockTween(this,false); }; Mp.isTweenLocked = function() { return _global.$tweenManager.isTweenLocked(this); }; Mp.isTweenPaused = function(prop) { return _global.$tweenManager.isTweenPaused(this,prop); }; Mp.pauseTween = function(props) { var _loc4_ = undefined; if(props != undefined) { if(typeof props == "string") { if(props.indexOf(",") > -1) { props = props.split(" ").join("").split(","); } else { props = [props]; } } _loc4_ = {}; for(var _loc5_ in props) { _loc4_[props[_loc5_]] = true; } } _global.$tweenManager.pauseTween(this,_loc4_); }; Mp.unpauseTween = function(props) { var _loc4_ = undefined; if(props != undefined) { if(typeof props == "string") { if(props.indexOf(",") > -1) { props = props.split(" ").join("").split(","); } else { props = [props]; } } _loc4_ = {}; for(var _loc5_ in props) { _loc4_[props[_loc5_]] = true; } } _global.$tweenManager.unpauseTween(this,_loc4_); }; Mp.pauseAllTweens = function() { _global.$tweenManager.pauseTween(); }; Mp.unpauseAllTweens = function() { _global.$tweenManager.unpauseTween(); }; Mp.stopAllTweens = function() { _global.$tweenManager.stopAll(); }; Mp.ffTween = function(props) { var _loc4_ = undefined; if(props != undefined) { if(typeof props == "string") { if(props.indexOf(",") > -1) { props = props.split(" ").join("").split(","); } else { props = [props]; } } _loc4_ = {}; for(var _loc5_ in props) { _loc4_[props[_loc5_]] = true; } } _global.$tweenManager.ffTween(this,_loc4_); }; Mp.rewTween = function(props) { var _loc4_ = undefined; if(props != undefined) { if(typeof props == "string") { if(props.indexOf(",") > -1) { props = props.split(" ").join("").split(","); } else { props = [props]; } } _loc4_ = {}; for(var _loc5_ in props) { _loc4_[props[_loc5_]] = true; } } _global.$tweenManager.rewTween(this,_loc4_); }; Mp.alphaTo = function(destAlpha, seconds, animType, delay, callback, extra1, extra2) { this.tween(["_alpha"],[destAlpha],seconds,animType,delay,callback,extra1,extra2); }; Mp.scaleTo = function(destScale, seconds, animType, delay, callback, extra1, extra2) { this.tween(["_xscale","_yscale"],[destScale,destScale],seconds,animType,delay,callback,extra1,extra2); }; Mp.sizeTo = function(destSize, seconds, animType, delay, callback, extra1, extra2) { this.tween(["_width","_height"],[destSize,destSize],seconds,animType,delay,callback,extra1,extra2); }; Mp.slideTo = function(destX, destY, seconds, animType, delay, callback, extra1, extra2) { this.tween(["_x","_y"],[destX,destY],seconds,animType,delay,callback,extra1,extra2); }; Mp.rotateTo = function(destRotation, seconds, animType, delay, callback, extra1, extra2) { this.tween(["_rotation"],[destRotation],seconds,animType,delay,callback,extra1,extra2); }; _global.getColorTransObj = function(type, amt, rgb) { switch(type) { case "brightness": var _loc4_ = 100 - Math.abs(amt); var _loc6_ = 0; if(amt > 0) { _loc6_ = 256 * (amt / 100); } return {ra:_loc4_,rb:_loc6_,ga:_loc4_,gb:_loc6_,ba:_loc4_,bb:_loc6_}; case "brightOffset": _loc6_ = 256 * (amt / 100); return {ra:100,rb:_loc6_,ga:100,gb:_loc6_,ba:100,bb:_loc6_}; case "contrast": var _loc2_ = {}; var _loc0_ = null; _loc2_.ba = _loc0_ = amt; _loc2_.ga = _loc0_; _loc2_.ra = _loc0_; _loc2_.bb = _loc0_ = 128 - 1.28 * amt; _loc2_.gb = _loc0_; _loc2_.rb = _loc0_; return _loc2_; case "invertColor": _loc2_ = {}; _loc2_.ba = _loc0_ = 100 - 2 * amt; _loc2_.ga = _loc0_; _loc2_.ra = _loc0_; _loc2_.bb = _loc0_ = amt * 2.55; _loc2_.gb = _loc0_; _loc2_.rb = _loc0_; return _loc2_; case "tint": if(rgb == undefined || rgb == null) { break; } var _loc8_ = rgb >> 16; var _loc9_ = rgb >> 8 & 0xFF; var _loc7_ = rgb & 0xFF; var _loc5_ = amt / 100; _loc2_ = {rb:_loc8_ * _loc5_,gb:_loc9_ * _loc5_,bb:_loc7_ * _loc5_}; _loc2_.ba = _loc0_ = 100 - amt; _loc2_.ga = _loc0_; _loc2_.ra = _loc0_; return _loc2_; } return {rb:0,ra:100,gb:0,ga:100,bb:0,ba:100}; }; Mp.brightnessTo = function(bright, seconds, animType, delay, callback, extra1, extra2) { this.tween(["_ct_"],[getColorTransObj("brightness",bright)],seconds,animType,delay,callback,extra1,extra2); }; Mp.brightOffsetTo = function(percent, seconds, animType, delay, callback, extra1, extra2) { this.tween(["_ct_"],[getColorTransObj("brightOffset",percent)],seconds,animType,delay,callback,extra1,extra2); }; Mp.contrastTo = function(percent, seconds, animType, delay, callback, extra1, extra2) { this.tween(["_ct_"],[getColorTransObj("contrast",percent)],seconds,animType,delay,callback,extra1,extra2); }; Mp.colorTo = function(rgb, seconds, animType, delay, callback, extra1, extra2) { this.tween(["_ct_"],[getColorTransObj("tint",100,rgb)],seconds,animType,delay,callback,extra1,extra2); }; Mp.colorTransformTo = function(ra, rb, ga, gb, ba, bb, aa, ab, seconds, animType, delay, callback, extra1, extra2) { var _loc2_ = {ra:ra,rb:rb,ga:ga,gb:gb,ba:ba,bb:bb,aa:aa,ab:ab}; this.tween(["_ct_"],[_loc2_],seconds,animType,delay,callback,extra1,extra2); }; Mp.invertColorTo = function(percent, seconds, animType, delay, callback, extra1, extra2) { this.tween(["_ct_"],[getColorTransObj("invertColor",percent)],seconds,animType,delay,callback,extra1,extra2); }; Mp.tintTo = function(rgb, percent, seconds, animType, delay, callback, extra1, extra2) { this.tween(["_ct_"],[getColorTransObj("tint",percent,rgb)],seconds,animType,delay,callback,extra1,extra2); }; Mp.getFrame = function() { return this._currentframe; }; Mp.setFrame = function(fr) { this.gotoAndStop(Math.round(fr)); }; Mp.addProperty("_frame",Mp.getFrame,Mp.setFrame); Mp.frameTo = function(endframe, duration, animType, delay, callback, extra1, extra2) { if(endframe == undefined) { endframe = this._totalframes; } this.tween("_frame",endframe,duration,animType,delay,callback,extra1,extra2); }; var TFP = TextField.prototype; if(!TFP.origAddListener) { TFP.origAddListener = TFP.addListener; ASSetPropFlags(TFP,"origAddListener",1,0); TFP.addListener = function() { if(!this._listeners) { AsBroadcaster.initialize(this); } this.origAddListener.apply(this,arguments); }; } var $_$methods = ["tween","stopTween","isTweening","getTweens","lockTween","isTweenLocked","unlockTween","isTweenPaused","pauseTween","unpauseTween","pauseAllTweens","unpauseAllTweens","stopAllTweens","ffTween","rewTween","getFrame","setFrame","_frame","frameTo","alphaTo","brightnessTo","colorTo","colorTransformTo","invertColorTo","tintTo","scaleTo","sizeTo","slideTo","rotateTo","brightOffsetTo","contrastTo"]; for(var $_$i in $_$methods) { ASSetPropFlags(Mp,$_$methods[$_$i],1,0); if($_$methods[$_$i].toLowerCase().indexOf("frame") == -1) { TFP[$_$methods[$_$i]] = Mp[$_$methods[$_$i]]; ASSetPropFlags(TFP,$_$methods[$_$i],1,0); } } delete Mp; delete TFP; delete $_$methods; delete $_$i; mdm.initevents(); if(System.capabilities.playerType == "External") { appdir = ""; } else { appdir = mdm.Application.path; } folder = "9430830/"; status_op._visible = false; _root.onEnterFrame = function() { var _loc4_ = _root.getBytesTotal(); var _loc2_ = _root.getBytesLoaded(); if(_loc2_ > 0) { var _loc3_ = int(_loc2_ / _loc4_ * 100); if(_loc3_ > 99) { delete _root.onEnterFrame; loadSettings(); } } }; stop();